<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>类数组(arguments)</title>
</head>
<body>
    <script>
    function Test() {
         console.log(arguments)
    }
   Test(1,2,3,4,5,6)

   //类数组

   var obj = {
       "0" : 'a',
       "1" : 'b',
       "2" : 'c',
       "length":'3',
       "push" : Array.prototype.push
   }
    </script>

    <!-- 
         类数组:
         1.可以利用属性名模拟数组的特性
         2.可以动态增长length属性
         3.如果强行让类数组调用push方法,则会根据length属性长度值的位置进行属性的扩充


     -->
</body>
</html>